/**
 * Assignment part 3 to part 6
 * 
 * @author Color Lee
 *
 */
public class asgMenu implements asgADT{

	/**
	 * Command Execute
	 */
	public void execute() {
		String choice = "";
		io.showCommandsMenu();
		do{
			choice = io.showQuestionString("Enter a menu choice: ");
			switch(choice){
			case "1": 
				System.out.println(evaluator.evaulateResult());
				break;
			case "2":
				System.out.println(evaluator.evaluateStep());
				break;
			case "3":
				System.out.println(evaluator.getStepTree());
				break;
			case "4":
				System.out.println(evaluator.getStepInorder());
				break;
			case "d":
				System.out.println(evaluator.getPostfixIncludeVariable());
				System.out.println(evaluator.getVariableList()+"\n");
				break;
			case "v":
				evaluator.updateVariable();
				System.out.println();
				break;
			}
		}while (!choice.equals("x"));
	}
}